package com.lf.mapper;

import com.lf.model.EbNews;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface NewsMapper {
    List<EbNews> findByPage(@Param("from") Integer from, @Param("pageSize") Integer pageSize);
    int save(EbNews ebNews);
    int delete (Integer enId);
//    int updateByPrimaryKey(EbNews ebNews);


    int getMaxPage(int pageSize);

    int updateByPk(EbNews ebNews);

    EbNews findById(int enId);
}


